function database_index_vec = convert_to_index_in_base(test_vec)
database_index_vec = [];
current = 1;
test_vec_len = length(test_vec);

for i = 1:40
    for j = 1:10
        is_member = false;
        
        for k = 1:test_vec_len
            if(test_vec(k) == j)
                is_member = true;
            end
        end
        if(is_member == true)
            database_index_vec = [database_index_vec current];
        end
        current = current + 1;
    end
end